package com.github.ecbp.user.service.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.github.ecbp.common.data.mapper.BaseMapper;
import com.github.ecbp.user.service.entity.TResource;
import com.github.ecbp.user.service.response.ResourceRes;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>
 * 后台资源表 Mapper 接口
 * </p>
 *
 * @author zj2626
 * @since 2020-03-18
 */
public interface ResourceMapper extends BaseMapper<TResource> {
    /**
     * 查询所有的可用的资源信息
     *
     * @param wrapper
     * @return java.util.Set<com..service.user.vo.ResourceVo>
     * @author zj2626
     * @date 2020/5/12
     */
    Set<ResourceRes> getResourceAll(@Param(Constants.WRAPPER) Wrapper<TResource> wrapper);

}
